package com.jyw.business.ins.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jyw.business.ins.domain.InsPlanSkip;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * 巡检计划跳过任务储存Mapper接口
 *
 * @author zhangcheng
 * @date 2023-12-25
 */
public interface InsPlanSkipMapper extends BaseMapper<InsPlanSkip> {

    /**
     * 删除跳过任务
     *
     * @param planId
     * @param skipDate
     */
    void deleteSkipTask(@Param("planId")Long planId,@Param("skipDate")LocalDate skipDate);

    /**
     * 查询跳过存储任务
     *
     * @param planId
     * @param skipDate
     * @return
     */
    List<InsPlanSkip> findSkipTask(@Param("planId")Long planId,@Param("skipDate")LocalDate skipDate);
}
